package top.abrsm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品评论表
 * </p>
 *
 * @author WuZH
 * @since 2023-11-18
 */
@Data
@TableName ( "comment_info" )
@ApiModel ( value = "CommentEntity对象", description = "商品评论表" )
public class CommentEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ( "商品评论Id" )
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "评论内容" )
    @TableField ( "content" )
    private String content;

    @ApiModelProperty ( "订单Id" )
    @TableField ( "orderId" )
    private String orderId;

    @ApiModelProperty ( "学生Id" )
    @TableField ( "stuId" )
    private String stuId;

    @ApiModelProperty ( "商品Id" )
    @TableField ( "productId" )
    private String productId;

    @ApiModelProperty ( "商品分数，显示为红色星星的个数" )
    @TableField ( "productScore" )
    private Integer productScore;

    @ApiModelProperty ( "快递包装分数" )
    @TableField ( "expressPackage" )
    private Integer expressPackage;

    @ApiModelProperty ( "送货速度分数" )
    @TableField ( "deliverySpeed" )
    private Integer deliverySpeed;

    @ApiModelProperty ( "商品价值分数" )
    @TableField ( "productValue" )
    private Integer productValue;

    @ApiModelProperty ( "类型，1：一楼，2：非一楼" )
    @TableField ( "type" )
    private Integer type;

    @ApiModelProperty ( "评论父Id" )
    @TableField ( "parentId" )
    private String parentId;

    @TableField ( "createTime" )
    private Date createTime;

    @TableField ( "changeTime" )
    private Date changeTime;

    @ApiModelProperty ( "是否有用" )
    @TableField ( "isUsed" )
    private Integer isUsed;


}
